﻿using System;
using System.Runtime.CompilerServices;

namespace Quicklight.Mobile.Cordova.File {

   [IgnoreNamespace]
   public class FileReader {
      /// <todo>The type for field ReadyState could not be determined from the documentation. This should be improved</todo>
      [ScriptName("readyState")]
      public object ReadyState;
      [ScriptName("result")]
      public string Result;
      [ScriptName("error")]
      public FileError Error;
      /// <todo>The type of Callback for the OnLoadStart is not specified in the documentation. This should be improved</todo>
      [ScriptName("onloadstart")]
      public Callback OnLoadStart;
      /// <todo>The type of Callback for the OnProgress is not specified in the documentation. This should be improved</todo>
      [ScriptName("onprogress")]
      public Callback OnProgress;
      /// <todo>The type of Callback for the OnLoad is not specified in the documentation. This should be improved</todo>
      [ScriptName("onload")]
      public Callback OnLoad;
      /// <todo>The type of Callback for the OnAbort is not specified in the documentation. This should be improved</todo>
      [ScriptName("onabort")]
      public Callback OnAbort;
      /// <todo>The type of Callback for the OnError is not specified in the documentation. This should be improved</todo>
      [ScriptName("onerror")]
      public Callback OnError;
      /// <todo>The type of Callback for the OnLoadEnd is not specified in the documentation. This should be improved</todo>
      [ScriptName("onloadend")]
      public Callback OnLoadEnd;

      [ScriptName("abort")]
      public void Abort() {
      }

      [ScriptName("readAsDataURL")]
      public void ReadAsDataURL(File file) {
      }

      [ScriptName("readAsText")]
      public void ReadAsText(File file) {
      }
   }

}
